/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package g360.WebXpdlValidation;

/**
 *
 * @author andya
 */
public class Html
{
    public static String makeTag(String tagName)
    {
        return makeTag(tagName, null, null);
    }

    public static String makeTag(String tagName, String content)
    {
        return makeTag(tagName, null, content);
    }

    public static String makeTag(String tagName, String attributes, String content)
    {
        String result = "<" + tagName + " ";
        if (attributes != null)
        {
            result+= attributes;
        }
        result += ">";
        if (content != null)
        {
            result += content;
        }
        result += "</" + tagName + ">";
        return result;
    }


}
